package com.ssh.action.users;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.bean.Users;
import com.ssh.service.UserService;

public class UpdataPUserAction extends ActionSupport {

	private Users users;
	private UserService userService;
	public Users getUsers() {
		return users;
	}
	public void setUsers(Users users) {
		this.users = users;
	}
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	@Override
	public String execute() throws Exception {
		System.out.println(users.getId());
		users = this.userService.findById(users.getId());
		
		return SUCCESS;
		
	}
	
	
}
